package com.kingyun.gpsinspection.purificationservice.services.tdm.innerservice.impl;

import com.kingyun.gpsinspection.purificationservice.dao.mapper.tdm.TdmMaterialsListMapper;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.MaterialsList;
import com.kingyun.gpsinspection.purificationservice.facade.service.tdm.MaterialsListService;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * Created by liyi on 2016/12/15.
 * 物资需求
 */
public class MaterialsListServiceImpl implements MaterialsListService {

    @Autowired
    public TdmMaterialsListMapper tdmMaterialsListMapper;

    /**
     * 新增
     * @param materialsList
     * @throws Exception
     */
    @Override
    public void saveMaterialsList(MaterialsList materialsList) {
        if(materialsList !=null) {
            tdmMaterialsListMapper.insertSelective(materialsList);
        }
    }
}
